<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/*删除(数据库）语句*/
require('data/db_emp_conn.php'); //连接数据库、测试文件
$id = $_GET['id']; 

//$sql = 'delete from dbconn where id=$id ';

//echo $sql;

//die;

$result = $conn->query($sql);
if($result === false){
    echo '错误！';
}
 else {
    header('Location: index.php');    
}

/* $bbsid=isset($_GET['id']) ? $_GET['id']: 0;
 $sql="delete from dbconn whrer id='$bbsid'";
 $rs=$mysqli->query ($sql);
 if ($rs)
 {
     echo "<script language='javascript' type='text/javascript'>";
     echo "alert('刪除成功')";
     echo  "window.location.href='index.php'";
     echo  "</script>";
     exit;
 }
 else
 {
     echo "刪除失败！";
     exit;
 }
 */